package com.alisls.shequtao.service.goods.service;

import com.alisls.shequtao.common.service.BaseService;
import com.alisls.shequtao.service.goods.dto.CategoryDTO;
import com.alisls.shequtao.service.goods.entity.CategoryDO;
import com.alisls.shequtao.service.goods.vo.CategoryVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 商品分类服务
 *
 * @author Ke Wang
 */
public interface CategoryService extends IService<CategoryDO>, BaseService<CategoryDO, CategoryDTO> {

    List<CategoryVO> listCategoriesByTree(Long parentId);

    List<CategoryDTO> listCategoriesByIds(List<Long> categoryIds);

    List<CategoryVO> listCategoriesByParentId(Long parentId);

    CategoryDTO save(CategoryDTO categoryDTO);

}
